package com.ymtms.arrivalofgoods.dao;

import com.ymtms.arrivalofgoods.pojo.CheckGoodsCustomer;
import com.ymtms.arrivalofgoods.pojo.CheckGoodsReceive;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface CheckGoodsReceiveMapper {
    int deleteByPrimaryKey(Integer cgrid);

    int insert(CheckGoodsReceive record);

    int insertSelective(CheckGoodsReceive record);

    CheckGoodsReceive selectByPrimaryKey(Integer cgrid);

    int updateByPrimaryKeySelective(CheckGoodsReceive record);

    int updateByPrimaryKey(CheckGoodsReceive record);

    @Select("select*from check_goods_receive where gid=#{gid}")
    CheckGoodsReceive queryByReceiptId(Integer gid);

    void updateCheckReceiveByArray(Integer[] keys);

    @Update("update check_goods_receive set status='已验收' where gid=#{gid}")
    void updateByReceiptId(Integer gid);

}